#ifndef MUSICITEMWIDGET_H
#define MUSICITEMWIDGET_H

#include <QWidget>

class QLabel;
class QToolButton;

class MusicItemWidget : public QWidget
{
    Q_OBJECT
public:
    explicit MusicItemWidget(int index,const QString& name, QWidget *parent = nullptr);

signals:
    void playRequest(int index);

private:
    void layoutUI();

private:
    QLabel* index_label;
    QLabel* cover_label;
    QLabel* name_labe;
    QToolButton* play_toolButton;
    QToolButton* play_next_toolButton;
    QToolButton* download_toolButton;
    QToolButton* collect_toolButton;
    QToolButton* more_toolButton;
    int index;


};

#endif // MUSICITEMWIDGET_H
